//
//  NSDictionary+Extend.h
//  XLDoctor
//
//  Created by longma on 2018/12/27.
//  Copyright © 2018年 XLH. All rights reserved.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface UINavigationController (MJUI)

/// 是否存在控制器
/// - Parameter className: 类名
- (BOOL)mj_containTargetVCWithClassName:(NSString *)className;

/// 移除控制器
/// - Parameter className: 控制器名称
- (void)mj_removeTargetVCWithClassName:(NSString *)className;

/// 跳转控制器并移除当前控制器
/// - Parameters:
///   - viewController: 控制器
///   - animated: 动画
- (void)mj_pushAndRemoveCurrentViewController:(UIViewController *)viewController animated:(BOOL)animated;

- (void)mj_removeTargetVCWithClass:(Class)mClass;

- (BOOL)mj_containTargetVCWithClass:(Class)mClass;

- (void)mj_removeRtTargetVCWithClass:(Class)mClass currentVC:(UIViewController *)currentVC;

- (void)mj_pushViewController:(UIViewController *)viewController animated:(BOOL)animated completion:(void (^)(void))completion;

- (void)mj_popViewControllerWithTargetClass:(Class)mClass;

- (UIViewController *)mj_popViewControllerAnimated:(BOOL)animated completion:(void (^)(void))completion;
@end

NS_ASSUME_NONNULL_END
